home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / fsscl20d / FORM6.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-04-03  |  8.8 KB  |  269 lines

  1. VERSION 5.00
  2. Object = "{75C038D3-EA57-11D2-A3BC-000000000000}#1.0#0"; "fsScroll5D.ocx"
  3. Begin VB.Form frmManualScroll 
  4.    Caption         =   "Manual Scroll"
  5.    ClientHeight    =   2685
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   5445
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   2685
  11.    ScaleWidth      =   5445
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.CommandButton Command5 
  14.       Height          =   465
  15.       Left            =   4350
  16.       Picture         =   "Form6.frx":0000
  17.       Style           =   1  'Graphical
  18.       TabIndex        =   21
  19.       Top             =   1230
  20.       UseMaskColor    =   -1  'True
  21.       Width           =   615
  22.    End
  23.    Begin VB.CommandButton Command4 
  24.       Height          =   525
  25.       Left            =   4350
  26.       Picture         =   "Form6.frx":0442
  27.       Style           =   1  'Graphical
  28.       TabIndex        =   20
  29.       Top             =   630
  30.       UseMaskColor    =   -1  'True
  31.       Width           =   615
  32.    End
  33.    Begin VB.CommandButton Command3 
  34.       Height          =   465
  35.       Left            =   2130
  36.       Picture         =   "Form6.frx":0884
  37.       Style           =   1  'Graphical
  38.       TabIndex        =   23
  39.       Top             =   2130
  40.       Width           =   615
  41.    End
  42.    Begin VB.CommandButton Command2 
  43.       Height          =   465
  44.       Left            =   1410
  45.       Picture         =   "Form6.frx":0CC6
  46.       Style           =   1  'Graphical
  47.       TabIndex        =   22
  48.       Top             =   2130
  49.       Width           =   615
  50.    End
  51.    Begin VB.CommandButton Command1 
  52.       Caption         =   "OK"
  53.       Height          =   435
  54.       Left            =   4110
  55.       TabIndex        =   19
  56.       Top             =   120
  57.       Width           =   1185
  58.    End
  59.    Begin FishheadScroll.fsScroll fsScroll1 
  60.       Height          =   1845
  61.       Left            =   150
  62.       TabIndex        =   0
  63.       Top             =   90
  64.       Width           =   3825
  65.       _ExtentX        =   6747
  66.       _ExtentY        =   3254
  67.       MouseIcon       =   "Form6.frx":1108
  68.       Begin VB.Frame Frame1 
  69.          Caption         =   "Select 2nd Type:"
  70.          Height          =   2745
  71.          Index           =   1
  72.          Left            =   1815
  73.          TabIndex        =   11
  74.          Top             =   945
  75.          Width           =   1485
  76.          Begin VB.OptionButton Option1 
  77.             Caption         =   "Item 1"
  78.             Height          =   375
  79.             Index           =   9
  80.             Left            =   180
  81.             TabIndex        =   12
  82.             Top             =   450
  83.             Width           =   1000
  84.          End
  85.          Begin VB.OptionButton Option1 
  86.             Caption         =   "Item 2"
  87.             Height          =   375
  88.             Index           =   8
  89.             Left            =   180
  90.             TabIndex        =   13
  91.             Top             =   870
  92.             Width           =   1000
  93.          End
  94.          Begin VB.OptionButton Option1 
  95.             Caption         =   "Item 3"
  96.             Height          =   375
  97.             Index           =   7
  98.             Left            =   180
  99.             TabIndex        =   14
  100.             Top             =   1290
  101.             Width           =   1000
  102.          End
  103.          Begin VB.OptionButton Option1 
  104.             Caption         =   "Item 4"
  105.             Height          =   375
  106.             Index           =   6
  107.             Left            =   180
  108.             TabIndex        =   15
  109.             Top             =   1770
  110.             Width           =   1000
  111.          End
  112.          Begin VB.OptionButton Option1 
  113.             Caption         =   "Item 5"
  114.             Height          =   375
  115.             Index           =   5
  116.             Left            =   180
  117.             TabIndex        =   16
  118.             Top             =   2220
  119.             Width           =   1000
  120.          End
  121.       End
  122.       Begin VB.Frame Frame1 
  123.          Caption         =   "Select Type:"
  124.          Height          =   2745
  125.          Index           =   0
  126.          Left            =   165
  127.          TabIndex        =   5
  128.          Top             =   975
  129.          Width           =   1485
  130.          Begin VB.OptionButton Option1 
  131.             Caption         =   "Item 5"
  132.             Height          =   375
  133.             Index           =   4
  134.             Left            =   180
  135.             TabIndex        =   10
  136.             Top             =   2220
  137.             Width           =   1000
  138.          End
  139.          Begin VB.OptionButton Option1 
  140.             Caption         =   "Item 4"
  141.             Height          =   375
  142.             Index           =   3
  143.             Left            =   180
  144.             TabIndex        =   9
  145.             Top             =   1770
  146.             Width           =   1000
  147.          End
  148.          Begin VB.OptionButton Option1 
  149.             Caption         =   "Item 3"
  150.             Height          =   375
  151.             Index           =   2
  152.             Left            =   180
  153.             TabIndex        =   8
  154.             Top             =   1290
  155.             Width           =   1000
  156.          End
  157.          Begin VB.OptionButton Option1 
  158.             Caption         =   "Item 2"
  159.             Height          =   375
  160.             Index           =   1
  161.             Left            =   180
  162.             TabIndex        =   7
  163.             Top             =   870
  164.             Width           =   1000
  165.          End
  166.          Begin VB.OptionButton Option1 
  167.             Caption         =   "Item 1"
  168.             Height          =   375
  169.             Index           =   0
  170.             Left            =   180
  171.             TabIndex        =   6
  172.             Top             =   450
  173.             Width           =   1000
  174.          End
  175.       End
  176.       Begin VB.TextBox Text2 
  177.          Height          =   315
  178.          Left            =   855
  179.          TabIndex        =   4
  180.          Top             =   525
  181.          Width           =   2480
  182.       End
  183.       Begin VB.PictureBox Picture2 
  184.          Height          =   1875
  185.          Left            =   4095
  186.          Picture         =   "Form6.frx":1422
  187.          ScaleHeight     =   1815
  188.          ScaleWidth      =   1845
  189.          TabIndex        =   18
  190.          Top             =   2025
  191.          Width           =   1905
  192.       End
  193.       Begin VB.PictureBox Picture1 
  194.          Height          =   1695
  195.          Left            =   4095
  196.          Picture         =   "Form6.frx":44A4
  197.          ScaleHeight     =   1635
  198.          ScaleWidth      =   1815
  199.          TabIndex        =   17
  200.          Top             =   135
  201.          Width           =   1875
  202.       End
  203.       Begin VB.TextBox Text1 
  204.          Height          =   315
  205.          Left            =   855
  206.          TabIndex        =   2
  207.          Top             =   135
  208.          Width           =   2480
  209.       End
  210.       Begin VB.Label Label2 
  211.          Caption         =   "URL:"
  212.          Height          =   285
  213.          Left            =   195
  214.          TabIndex        =   3
  215.          Top             =   585
  216.          Width           =   855
  217.       End
  218.       Begin VB.Label Label1 
  219.          Caption         =   "Name:"
  220.          Height          =   255
  221.          Left            =   165
  222.          TabIndex        =   1
  223.          Top             =   195
  224.          Width           =   855
  225.       End
  226.    End
  227. Attribute VB_Name = "frmManualScroll"
  228. Attribute VB_GlobalNameSpace = False
  229. Attribute VB_Creatable = False
  230. Attribute VB_PredeclaredId = True
  231. Attribute VB_Exposed = False
  232. Option Explicit
  233. Private Sub Command1_Click()
  234.     Unload Me
  235. End Sub
  236. ' ********************************************************
  237. ' ** Fishhead Software
  238. ' ********************************************************
  239. ' ** This sample shows how to create a manual scrolling
  240. ' ** form.  Note: When using SetScrollPos, you don't
  241. ' ** need to worry about going beyond the max and min
  242. ' ** values, fsScroll will hanlde this for you.
  243. ' ********************************************************
  244. Private Sub Command2_Click()
  245.     Dim x As Single, y As Single
  246.     fsScroll1.GetScrollPos x, y
  247.     fsScroll1.SetScrollPos x - 100, y
  248. End Sub
  249. Private Sub Command3_Click()
  250.     Dim x As Single, y As Single
  251.     fsScroll1.GetScrollPos x, y
  252.     fsScroll1.SetScrollPos x + 100, y
  253. End Sub
  254. Private Sub Command4_Click()
  255.     Dim x As Single, y As Single
  256.     fsScroll1.GetScrollPos x, y
  257.     fsScroll1.SetScrollPos x, y - 100
  258. End Sub
  259. Private Sub Command5_Click()
  260.     Dim x As Single, y As Single
  261.     fsScroll1.GetScrollPos x, y
  262.     fsScroll1.SetScrollPos x, y + 100
  263. End Sub
  264. Private Sub Form_Load()
  265.     fsScroll1.AutoScroll = False
  266.     fsScroll1.SmallChangeY = 200
  267.     fsScroll1.LargeChangeY = 1000
  268. End Sub
  269.